package com.eric.ipc.aidl;

import android.content.Context;
import android.os.Parcel;
import android.os.RemoteException;

public class MyBinder extends IMediaPlayer.Stub {
	private Context mContext;
	public MyBinder(Context context){
		mContext = context;
	}
	@Override
	public void play() throws RemoteException {
		MyMediaPlayer.getIntance(mContext).play();
	}
	@Override
	public void stop() throws RemoteException {
		MyMediaPlayer.getIntance(mContext).stop();
	}
	@Override
	public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
			throws RemoteException {
		// TODO Auto-generated method stub
		return super.onTransact(code, data, reply, flags);
	}
	@Override
	public double add(double a, double b) throws RemoteException {
		// TODO Auto-generated method stub
		return (a+b);
	}
	

	
}
